package top.zywork.service;

import top.zywork.dos.SchoolDO;
import com.baomidou.mybatisplus.extension.service.IService;
import top.zywork.dto.PagerDTO;
import top.zywork.query.SchoolQuery;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author
 * @since 2020-10-12
 */
public interface SchoolService extends IService<SchoolDO> {

    /**
     * 检查当前学校是否存在
     * @param id 学校ID
     * @return
     */
    SchoolDO checkSchool(Long id);

    PagerDTO listAllByCondition(SchoolQuery schoolQuery);

    PagerDTO listPageByCondition(SchoolQuery schoolQuery);

}
